﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DetectScars.model
{
    internal class PlcPositon
    {
        //X
        public static double U;
        public static double V;
        public static double Z;
        public static double X;
        public static double W;
        public static double C;
        public static float Piece_O_Min;
        public static float Piece_O_Max;
        public static float Piece_I_Min;
        public static float Piece_I_Max;
        public static float Piece_H;

        public static void updatePosition(double u, double v, double z, double x, double w)
        {
            if (U != u)
            {
                CheckU(u);
                U = u;
            }
            if (V != v)
            {
                CheckV(v);
                V = v;
            }
            if (Z != z)
            {
                CheckZ(z);
                Z = z;
            }
            if (X != x)
            {
                CheckX(x);
                X = x;
            }
            if (W != w)
            {
                CheckW(w);
                W = w;
            }
        }

        private static void CheckU(double v)
        {
            //throw new NotImplementedException();
        }
        private static void CheckV(double v)
        {
            //throw new NotImplementedException();
        }
        private static void CheckZ(double z)
        {
            //throw new NotImplementedException();
        }
        private static void CheckX(double x)
        {
            //throw new NotImplementedException();
        }
        private static void CheckW(double w)
        {
            //throw new NotImplementedException();
        }
    }
}
